package com.tistory.ldaehyeon.webgl.lesson;

public class WebGLLessonAction {
	private int lesson = 0;
	
	private int errorCode = 0;
	private String errorMessage = null;
	
	public String execute() {
		String result = null;
		
		if (lesson < 0 || lesson > 2) {
			this.errorCode = 404;
			this.errorMessage = "Page Not Found!";
			result = "globalError";
		} else {
			result = "lesson" + Integer.toString(this.lesson);
		}
		
		return result;
	}
	
	public int getLesson() { return this.lesson; }
	public void setLesson(int lesson) { this.lesson = lesson; }
	
	public int getErrorCode() { return this.errorCode; }
	public String getErrorMessage() { return this.errorMessage; }
}